/*
 * $Id: SyncStatus.java 23 2002-09-29 13:59:30Z bpruessmann $
 * 
 * Copyright (c) 2001 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 */
package net.sourceforge.p4eclipse.internal.ui.sync;

import java.util.Comparator;

import org.eclipse.team.core.sync.ILocalSyncElement;

/**
  * @version 	$Revision: 23 $
  * @author		<a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  */
public class SyncStatus
{
	public static final int INCOMING    = ILocalSyncElement.INCOMING;
	public static final int CONFLICTING = ILocalSyncElement.CONFLICTING;
	
	private String filename;
	private int status;
		
	public SyncStatus(String filename, int status)
	{
		this.filename = filename;
		this.status = status;
	}	
	
	public String getFilename()
	{
		return filename;		
	}
	
	public boolean isConflicting()
	{
		return status == CONFLICTING;
	}
}
